package com.dy.utils;
public class CurrentHolder {
    private static final ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void setCurrent(Long currentId){
        tl.set(currentId);
    }

    public static Long getCurrent(){
        return tl.get();
    }

    public static void removeCurrent(){
        tl.remove();
    }
}
